package com.ruoyi.hotel.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.hotel.mapper.DishOrderDetailMapper;
import com.ruoyi.hotel.domain.DishOrderDetail;
import com.ruoyi.hotel.service.IDishOrderDetailService;

/**
 * Service业务层处理
 * 
 * @author chen
 * @date 2022-05-03
 */
@Service
public class DishOrderDetailServiceImpl implements IDishOrderDetailService 
{
    @Autowired
    private DishOrderDetailMapper dishOrderDetailMapper;

    /**
     * 查询
     * 
     * @param id 主键
     * @return 
     */
    @Override
    public DishOrderDetail selectDishOrderDetailById(Long id)
    {
        return dishOrderDetailMapper.selectDishOrderDetailById(id);
    }

    /**
     * 查询列表
     * 
     * @param dishOrderDetail 
     * @return 
     */
    @Override
    public List<DishOrderDetail> selectDishOrderDetailList(DishOrderDetail dishOrderDetail)
    {
        return dishOrderDetailMapper.selectDishOrderDetailList(dishOrderDetail);
    }

    /**
     * 新增
     * 
     * @param dishOrderDetail 
     * @return 结果
     */
    @Override
    public int insertDishOrderDetail(DishOrderDetail dishOrderDetail)
    {
        return dishOrderDetailMapper.insertDishOrderDetail(dishOrderDetail);
    }

    /**
     * 修改
     * 
     * @param dishOrderDetail 
     * @return 结果
     */
    @Override
    public int updateDishOrderDetail(DishOrderDetail dishOrderDetail)
    {
        return dishOrderDetailMapper.updateDishOrderDetail(dishOrderDetail);
    }

    /**
     * 批量删除
     * 
     * @param ids 需要删除的主键
     * @return 结果
     */
    @Override
    public int deleteDishOrderDetailByIds(Long[] ids)
    {
        return dishOrderDetailMapper.deleteDishOrderDetailByIds(ids);
    }

    /**
     * 删除信息
     * 
     * @param id 主键
     * @return 结果
     */
    @Override
    public int deleteDishOrderDetailById(Long id)
    {
        return dishOrderDetailMapper.deleteDishOrderDetailById(id);
    }
}
